/**
@Description  请填写文件描述（需要改）
@author: freedom
@date: 2021/6/12
@note:
**/
package main

import (
	"fmt"
	"strings"
)

func main() {
	s := `2018/9/8 10:10:11 Local7.Info 172.16.10.2 Sep 8 10:09:50 2018 DMZ_CORE %%10SSHS/6/SSHS_VERSION_MISMATCH: SSH client 19.133.179.62 failed to log in because of version mismatch.<000>`

	/*for _, i2 := range splitStringChar(s) {
		fmt.Println(i2)
	}
	*/
	val := []rune{' ','/',':','%'}
	b := strings.FieldsFunc(s, func(r rune) bool {
		for _, value := range val {
			if r == value {
				return true
				break
			}
		}
		return false
	})
	for _, i2 := range b {
		fmt.Println(i2)
	}

}

func splitString(r rune) bool {
	return r == ' '
}

func splitStringChar(s string) []string {
	a := strings.FieldsFunc(s, splitString)
	return a
}
